package ATM;

public class Account {
    private String cardID;
    private String userName;
    private char sex;
    private String password;
    private double money;
    private double limit;

    public String getCardID(){
        return this.cardID;
    }
    public void setCardID(String cardID){
        this.cardID = cardID;
    }

    public String getUserName(){
        return this.userName + (sex == '男'?"先生":"女士");
    }
    public void setUserName(String userName){
        this.userName = userName;
    }

    public char getSex(){
        return this.sex;
    }
    public void setSex(char sex){
        this.sex = sex=='1'?'男':'女';
    }

    public String getPassword(){
        return this.password;
    }
    public void setPassword(String password){
        this.password = password;
    }

    public double getMoney(){
        return this.money;
    }
    public void setMoney(double money){
        this.money = money;
    }

    public double getLimit(){
        return this.limit;
    }
    public void setLimit(double limit){
        this.limit = limit;
    }
}
